package org.example.proxy;

import java.lang.reflect.Method;

public class SumTarget {

    public Object invokeMethod(Method method, Object[] args) throws Throwable{
        String methodName = method.getName();
        if (methodName.equals("getSum")) {
            return Integer.parseInt(args[0].toString()) + Integer.parseInt(args[1].toString());
        }
        return null;
    }

}
